import Vue from 'vue'
import Router from 'vue-router'
import page1 from '@/views/page1'
import page2 from '@/views/page2'
import fx from '@/views/fx'
import pj from '@/views/pj'
import sp from '@/views/sp'
import me from '@/views/me'
import ddan from '@/views/ddan'
import dp from '@/views/dp'
import dl from '@/views/dl'
import dxdl from '@/views/dxdl'
import mmdl from '@/views/mmdl'
import duh from '@/views/duh'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'page1',
      component: page1,
    },
    {
      path: '/page2',
      name: 'page2',
      component: page2,
      children:[
        {
          path: '/',
          name: 'sp',
          component: sp,
        },
        {
          path: '/pj',
          name: 'pj',
          component: pj,
        },
        {
          path: '/dp',
          name: 'dp',
          component: dp,
        },
      ]
    },
    {
      path: '/fx',
      name: 'fx',
      component:fx
    },
    {
      path: '/me',
      name: 'me',
      component: me,
    },
    {
      path: '/ddan',
      name: 'ddan',
      component: ddan,
    },
    {
      path: '/dl',
      name: 'dl',
      component: dl,
      children:[
        {
          path: '/',
          name: 'dxdl',
          component: dxdl,
        },
        {
          path: '/mmdl',
          name: 'mmdl',
          component: mmdl,
        },
        
      ]
    },
    {
      path: '/duh',
      name: 'duh',
      component: duh,
    }
  ]
})
